﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME      : FI.Net Application Framework
// COMPONENT ID     : ApplicationContext
// COMPONENT DESC   : Session based contextual data sharing.
//
// CREATED DATE/BY  : 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY :
// DATE/BY            SR#/CS/PM#/OTHERS      DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion

namespace FI.Core.ApplicationContexts
{
    /// <summary>
    /// The enumeration of ContextAttachBehavior gives following three options to attach a new context collection to the current ones
    /// </summary>
    public enum ContextAttachBehavior
    {
        /// <summary>
        /// Clear all of the current context items before attaching new ones.
        /// </summary>
        Clear,
        
        /// <summary>
        /// If the concurrent context item of the same key as the one to attach, nothing will be done.
        /// </summary>
        Ignore,

        /// <summary>
        /// Override the current context if it has the same key as the one to attach.
        /// </summary>
        Override
    }
}
